﻿using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace Epitech.Krisk.Xna.UI.Game.InGame.Gameplay.Objectifs
{
    class EighteenTerritories : QuestCard
    {
        public override bool IsValidate(Player pl)
        {
            bool ok = false;

            if (pl.OwnTerritory.Count >= 18)
            {
                ok = true;
                foreach (var army in pl.OwnTerritory)
                {
                    if (army.Value < 2)
                        ok = false;
                }
            }
            return ok;
        }

        public override void LoadContent(ContentManager content)
        {
            Texture = content.Load<Texture2D>("Game/QuestCards/01");
            ID = 1;
        }
    }
}
